package edu.sctu.practice.class02.Wangpeng.Dtest6;

/**
 * Created by wp on 2015/12/25.
 */
public class MaryChristmas {
    public static void main(String s[]){
        int[] ints={1,3,5,3,5,7,3,5,7,11,3,3,3};
        String result=null;
        String xingxing=" * ";
        System.out.println("圣诞树：");
        for(int i=0;i<ints.length;i++){
            result="";
            for(int j=0;j<20-xingxing.length()*(ints[i]/2);j++){
                result+=" ";
            }
            for(int j=0;j<ints[i];j++){
                result+=xingxing;
            }
            result+="\n";
            System.out.println(result);
        }
    }

}

